package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.SysUserRoleMapper;
import org.linlinjava.litemall.db.domain.SysUserRoleKey;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zhy
 * @create 2018-10-06 21:37
 **/
@Service
public class LitemallUserRoleService {

	@Resource
	private SysUserRoleMapper sysUserRoleMapper;

	public void deleteUserRole(Integer uid){
		sysUserRoleMapper.deleteUserRole(uid);
	}

	public void addValue(Integer userId,Integer roleId){
		sysUserRoleMapper.insertOne(userId,roleId);
	}
}
